class Cat:
    def __init__(self, name):
        self.name = name

        @classmethod
        def speak(self):
            print("miao~~~~~")
        def miao(self):
            print("miao~~~~~")

    def miao(self):
        print("miao~~~~~")

    @classmethod
    def speak(cls):
        print("miao~~~~~")


cat = Cat("小白")
print(cat.name)
cat.miao()
#print(cat.name)实例属性不能被调用
#Cat.miao()
Cat.speak()